import { legacy_createStore as createStore, combineReducers, compose, applyMiddleware } from "redux";
import thunk from "redux-thunk";


import appearance from "./appearance"
import checkNavigation from "./checkNavigation"

const bigRedcuer = combineReducers({
    CheckNav: checkNavigation,
    Appearance: appearance
})
// const windowData = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
// let composeEnhancers = windowData ? windowData : compose
const store = createStore(bigRedcuer, compose(applyMiddleware(thunk)))
export default store
